package com.zju.DoctorGo.service;

import com.zju.DoctorGo.entity.Prescription;

import java.math.BigDecimal;

import java.util.List;
public interface PrescriptionService {
    void createPrescription(Prescription prescription);

    void deletePrescription(Long id);
    List<Prescription> getPrescription(Long id);
    List<Prescription> getAllPrescriptions();
    double getTotalPrice(Long prescriptionId);

    void updatePrescriptionItem(Long prescriptionId, Long medicineId, int quantity);
    void deletePrescriptionItem(Long prescriptionId, Long medicineId);
    void addPrescriptionItem(Long prescriptionId, Long medicineId, int quantity);
}
